<form class="form-horizontal" id="form-add-category">



    <div class="form-group">
        <label class="control-label col-xs-2">
            Excel表格
        </label>
        <div class="col-xs-9">
            {include file="public/excelUploader" uploader-name="excel_path" /}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-2">
            下载Excel模板
        </label>
        <div class="col-xs-9">
            <a href="{:url('down_excel')}" style="line-height: 34px;color:red;">请点击此处下载并使用会员批量导入Excel模板</a>
        </div>
    </div>

    <div class="form-group">
        <div class="col-xs-offset-2 col-xs-3">
            <button type="submit" class="btn btn-success btn-block">确认导入</button>
        </div>
    </div>
</form>

<script src="__PUBLIC__/vendors/jquery.validation/jquery.validate.min.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/additional-methods.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/messages_zh.min.js"></script>

<script type="application/javascript">
    $(function () {
        $("#form-add-category").validate({
            messages:
                {

                },
            debug: true,
            submitHandler: function () {
                ajaxExcelSubmit('form-add-category', true);
            }
        });


    })
</script>